package com.xiaow.utils;

public class TestUtil {
    public static void main(String[] args) {
        System.out.println("主线程");
        new Thread() {
            @Override
            public void run() {
                long l = System.currentTimeMillis();
                while(System.currentTimeMillis()-l<10000){

                }
                System.out.println("子线程执行");
            }

            ;
        }.start();
        System.out.println("主线程2");
    }
}
